Automattic\Jetpack\Stats\WPCOM_Stats A

Total Complexity 54
Dependencies 5
Dependents 0
Total lines 571
Lines of code 205
Logical lines of code 114
Comment lines 265
Methods 31
Properties 2

Methods 31

Method Rating Maintainability Complexity Lines of code
fetch_post_stats()
A
49 8 30
fetch_remote_stats()
S
59 7 12
fetch_stats()
S
52 4 23
get_total_post_views()
S
53 4 22
convert_stats_array_to_object()
S
64 3 10
get_top_posts()
S
69 2 7
get_post_views()
S
68 2 7
__construct()
S
80 1 3
get_stats()
S
76 1 4
get_stats_summary()
S
76 1 4
get_archives()
S
76 1 4
get_video_details()
S
75 1 4
get_referrers()
S
76 1 4
get_clicks()
S
76 1 4
get_tags()
S
76 1 4
get_top_authors()
S
76 1 4
get_top_comments()
S
76 1 4
get_video_plays()
S
76 1 4
get_file_downloads()
S
76 1 4
get_views_by_country()
S
76 1 4
get_views_by_location()
S
75 1 4
get_followers()
S
76 1 4
get_comment_followers()
S
76 1 4
get_publicize_followers()
S
76 1 4
get_search_terms()
S
76 1 4
get_visits()
S
76 1 4
get_streak()
S
76 1 4
get_highlights()
S
76 1 4
get_insights()
S
76 1 4
build_endpoint()
S
74 1 4
fetch_stats_on_wpcom_simple()
S
76 1 3